<!--:
var action = "update.do";
var title = "编辑IMPA";
if (impa == null || impa.id <= 0) {
    action = "insert.do";
    title = "编辑IMPA";
}
-->
<div class="jimu-popup" style="display: none;">
    <div id="impa-modal" class="modal" tabindex="-1" data-backdrop="static" data-keyboard="false" style="display: none;">
        <form id="impa" class="form-horizontal" action="${action}" method="post">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                    <h3>${title}</h3>
                </div>
                <div class="modal-body">
                    <input id="id" name="id" type="hidden" value="${impa.id!}"/>
                    <div class="control-group">
                        <label for="code" class="control-label">编码</label>
                        <div class="controls">
                            <input id="code" name="code" type="text" required placeholder="6位唯一编码" value="${impa.code!}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label for="name" class="control-label">名称</label>
                        <div class="controls">
                            <input id="name" name="name" type="text" required placeholder="名称" value="${impa.name!}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label for="mingcheng" class="control-label">中文名称</label>
                        <div class="controls">
                            <input id="mingcheng" name="mingcheng" type="text" placeholder="名称" value="${impa.mingcheng!}"/>
                        </div>
                    </div>            
                    <div class="control-group">
                        <label for="unit" class="control-label">单位</label>
                        <div class="controls">
                            <input id="unit" name="unit" type="text" placeholder="单位" value="${impa.unit!}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label for="chengben" class="control-label">成本</label>
                        <div class="controls">
                            <input id="chengben" name="chengben" type="text" required placeholder="成本（元）" value="${impa.chengben!}"/>
                        </div>
                    </div>            
                    <div class="control-group">
                        <label for="baojia" class="control-label">报价</label>
                        <div class="controls">
                            <input id="baojia" name="baojia" type="text" required placeholder="报价（元）" value="${impa.baojia!}"/>
                        </div>
                    </div>            
                    <div class="control-group">
                        <label for="beizhu" class="control-label">描述</label>
                        <div class="controls">
                            <textarea id="beizhu" name="beizhu" class="form-control" rows="3" placeholder="255个字以内">${impa.beizhu!}</textarea>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" onclick="$('#impa').ajaxLoad();">提交</button>
                    <button type="button" data-dismiss="modal" class="btn btn-primary">关闭</button>
                </div>   
            </div>
        </form>

    </div>
</div>
